package com.zjf.carpark.entities;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.util.Date;

/**
 * @description:系统日志
 * @author: 张建飞
 * @createDate: 2019/12/20
 * @version: 1.0
 */
public class SysLog {
    private String logId;
    private String logContent;
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private Date logTime;
    private Integer userId;
    private User user;

    public SysLog() {
    }

    public SysLog(String logId, String logContent, Date logTime, Integer userId, User user) {
        this.logId = logId;
        this.logContent = logContent;
        this.logTime = logTime;
        this.userId = userId;
        this.user = user;
    }

    public String getLogId() {
        return logId;
    }

    public void setLogId(String logId) {
        this.logId = logId;
    }

    public String getLogContent() {
        return logContent;
    }

    public void setLogContent(String logContent) {
        this.logContent = logContent;
    }

    public Date getLogTime() {
        return logTime;
    }

    public void setLogTime(Date logTime) {
        this.logTime = logTime;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    @Override
    public String toString() {
        return "SysLog{" +
                "logId=" + logId +
                ", logContent='" + logContent + '\'' +
                ", logTime=" + logTime +
                ", userId=" + userId +
                ", user=" + user +
                '}';
    }
}
